Ext.define('TS.model.base.ProductModel', {
    extend: 'Ext.data.Model', 
    fields: ['productId','classifyId','repositoryId','productCode','productName',
    'packSpec', 'manufId','manuf','unit','innerPack',
    'boxPack', 'abc','qtyScale','priceScale','taxRate',
    'deleted', 'virtual','licenseNo','batchMgr','barcode','remark'
    ],
    associations: [{
		 type:'hasOne',
		 model: 'TS.model.base.ProductClassifyModel', 
		 associatedName : 'productClassify', 	     
		 associationKey:'productClassify'  
       },
       {
		 type:'hasOne',
		 model: 'TS.model.base.ProductBusPropertiesModel', 
		 associatedName : 'productBusProperties', 	     
		 associationKey:'productBusProperties'  
       },
       {
		 type:'hasOne',
		 model: 'TS.model.base.ProductMedicinePropertiesModel', 
		 associatedName : 'productMedicineProperteis', 	     
		 associationKey:'productMedicineProperteis'  
       }
	]
});

/*    private Integer productId;					//Required
	private Integer classifyId;					//Required
	private Integer repositoryId;
	private String productCode;					//Required
	private String productName;					//Required
	private String productBusName;	
	private String packSpec;
	private Integer manufId;
	private String manuf;
	private String unit;						//Required
	private Integer innerPack;
	private Integer boxPack;
	private String abc;
	private Integer qtyScale = 0;				//Required
	private Integer priceScale = 2;				//Required
	private Boolean deleted = false;			//Required
	private Boolean virtual = false;			//Required
	private String licenseNo;
	private Boolean batchMgr = false;			//Required
	private String barcode;
	private String remark;
	private ProductClassify productClassify;
	private ProductBusProperties productBusProperties;
	private ProductLogisticsProperties productLogisticsProperties;
	private ProductMedicineProperties productMedicineProperteis;
	private ProductManuf productManuf;*/